<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <head>

    </head>
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
            <ui:define name="content_nav">
                #{msg.content_nav_motormanage}
            </ui:define>
            <ui:define name="content">
                <h:form id="iptMotorPrjForm">
                    <h:panelGrid  styleClass="body_content_box" columns="1">
                        <h:messages globalOnly="true" infoClass="info"  errorClass="alert" fatalClass="colorOrange" />
                        <h:panelGrid styleClass="title_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_motor_input}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                            <h:panelGrid style="width: 100%; margin: 3px 5px 0px 5px" cellpadding="0" border="0" cellspacing="3">
                                <h:panelGrid columns="1" cellspacing="0" style="width: 85%">
                                    <!--  区域、小区名、工程覆盖类型、扩容类型   --> 
                                    <h:panelGrid columns="3" cellspacing="0" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_motor_domain}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:selectOneMenu value="#{motorInfoListBean.currentMotorInfo.domainInfo.domainId}" rendered="#{motorInfoListBean.currentOperation >= 2}">
                                                <f:selectItems value="#{motorInfoListBean.domainList}"/>
                                            </h:selectOneMenu>
                                            <h:outputText value="#{motorInfoListBean.currentMotorInfo.domainInfo.domainName}" rendered="#{motorInfoListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_motor_number}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{motorInfoListBean.currentMotorInfo.motorNum}" rendered="#{motorInfoListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{motorInfoListBean.currentMotorInfo.motorNum}" rendered="#{motorInfoListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_motor_style}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{motorInfoListBean.currentMotorInfo.motorStyle}" rendered="#{motorInfoListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{motorInfoListBean.currentMotorInfo.motorStyle}" rendered="#{motorInfoListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <!--  驾驶员信息   -->
                                        <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_driver_name}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{motorInfoListBean.currentMotorInfo.driverName}" rendered="#{motorInfoListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{motorInfoListBean.currentMotorInfo.driverName}" rendered="#{motorInfoListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_50,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_driver_phone}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{motorInfoListBean.currentMotorInfo.driverPhone}" rendered="#{motorInfoListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{motorInfoListBean.currentMotorInfo.driverPhone}" rendered="#{motorInfoListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:outputText />  
                                    </h:panelGrid>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    <h:panelGrid columns="2" cellspacing="5" style="width:100%;text-align: left">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{msg.bt_return}" action="#{motorInfoListBean.toLastPage}"/>
                            <h:commandButton value="#{msg.bt_new_motor_info_update}"  action="#{motorInfoListBean.saveMotorInfo}" rendered="#{motorInfoListBean.currentOperation == 2}" />
                            <h:commandButton value="#{msg.bt_new_motor_info_input}"  action="#{motorInfoListBean.saveMotorInfo}" rendered="#{motorInfoListBean.currentOperation == 3}" />
                        </h:panelGrid>
                        <h:outputLabel></h:outputLabel>
                    </h:panelGrid>

  </h:panelGrid>


                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>